package com.shj.em.biz.finance.mapper;

import com.shj.em.biz.finance.entity.Payment;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.plugins.Page;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 付款信息 Mapper 接口
 * </p>
 *
 * @author Shen Huang Jian
 * @since 2018-07-13
 */
@Mapper
public interface PaymentMapper extends BaseMapper<Payment> {
    /**
     * 分页查询
     * @param page 分页信息
     * @return
     */
    List<Payment> queryPaymentPage(Page<Payment> page, Map<String, Object> params);

    Map<String,BigDecimal> getUnpaidAmount(Map<String, String> params);
}
